package com.es.designmode.command;

/**
 * 将一个接收者对象绑定于一个动作，调用接收者相应的操作，以实现 execute
 *
 * @author Will
 */
public class ConcreteCommand extends Command {
    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void execute() {
        getReceiver().action();
    }
}
